.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFB6C1, #FFE4E1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.container::before,
.container::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
}

.food-decoration {
  position: absolute;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  filter: saturate(1.2);
}

.food-1 { top: 12%; left: 8%; font-size: 36px; content: '🍜'; }
.food-2 { top: 22%; right: 12%; font-size: 42px; content: '🍖'; }
.food-3 { top: 38%; left: 15%; font-size: 32px; content: '🍱'; }
.food-4 { top: 28%; right: 18%; font-size: 46px; content: '🍚'; }
.food-5 { bottom: 35%; left: 10%; font-size: 40px; content: '🥘'; }
.food-6 { bottom: 28%; right: 15%; font-size: 38px; content: '🍲'; }
.food-7 { top: 18%; left: 22%; font-size: 34px; content: '🥗'; }
.food-8 { bottom: 42%; right: 20%; font-size: 44px; content: '🍛'; }
.food-9 { top: 45%; left: 12%; font-size: 38px; content: '🥪'; }
.food-10 { bottom: 25%; right: 8%; font-size: 36px; content: '🍝'; }
.food-11 { top: 15%; left: 35%; font-size: 32px; content: '🌮'; }
.food-12 { bottom: 18%; right: 32%; font-size: 38px; content: '🥟'; }
.food-13 { top: 32%; left: 6%; font-size: 42px; content: '🍕'; }
.food-14 { bottom: 38%; right: 6%; font-size: 34px; content: '🍣'; }
.food-15 { top: 8%; right: 25%; font-size: 40px; content: '🥩'; }
.food-16 { bottom: 12%; left: 28%; font-size: 36px; content: '🍗'; }
.food-17 { top: 5%; left: 42%; font-size: 36px; content: '🥡'; }
.food-18 { bottom: 8%; right: 38%; font-size: 32px; content: '🌯'; }
.food-19 { top: 42%; right: 28%; font-size: 44px; content: '🥨'; }
.food-20 { bottom: 45%; left: 32%; font-size: 38px; content: '🍙'; }
.food-21 { top: 25%; left: 40%; font-size: 34px; content: '🥐'; }
.food-22 { bottom: 22%; right: 42%; font-size: 40px; content: '🍤'; }
.food-23 { top: 35%; right: 45%; font-size: 28px; content: '🥢'; opacity: 0.22; }
.food-24 { bottom: 32%; left: 45%; font-size: 26px; content: '🍴'; opacity: 0.22; }
.food-25 { top: 48%; left: 48%; font-size: 30px; content: '🥄'; opacity: 0.22; }
.food-26 { bottom: 15%; right: 48%; font-size: 32px; content: '🍽️'; opacity: 0.22; }
.food-27 { top: 10%; right: 52%; font-size: 28px; content: '🥄'; opacity: 0.22; }
.food-28 { bottom: 50%; left: 52%; font-size: 26px; content: '🍴'; opacity: 0.22; }

.floating-food {
  display: none;
}

@keyframes float,
@keyframes float-reverse {
  display: none;
}

.food-picker {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  border: 3px solid #FFB6C1;
}

.title {
  color: #FF69B4;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title::before {
  content: '🍽️';
}

.title::after {
  content: '🍴';
}

.food-result {
  font-size: 2rem;
  color: #FF69B4;
  margin: 30px 0;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 182, 193, 0.1);
  transition: all 0.3s ease;
  border: 2px dashed #FFB6C1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.food-result.rolling {
  animation: rollText 0.1s infinite;
}

@keyframes rollText {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-2px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.button {
  background: #FF69B4;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
  background: #FF1493;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #FF69B4;
  margin-left: 10px;
  border: 2px solid #FFB6C1;
}

.button-secondary:hover {
  background: #FF69B4;
  color: white;
  border-color: transparent;
}

.button-small {
  padding: 8px 16px;
  font-size: 1rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 30px;
  padding: 20px;
  border: 3px solid #FFB6C1;
  width: 90%;
  max-width: 500px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2);
  text-align: center;
  max-height: 70vh;
  overflow-y: auto;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 Webkit 浏览器的滚动条 */
.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-content h2 {
  color: #FF69B4;
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-content h2::before {
  content: '📝';
}

.menu-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.menu-input-group input {
  flex: 1;
  padding: 12px;
  border: 2px solid #FFB6C1;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.menu-input-group input:focus {
  outline: none;
  border-color: #FF69B4;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.empty-message {
  color: #999;
  font-style: italic;
  padding: 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.dish-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #FFF0F5;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 0;
}

.dish-item:hover {
  transform: translateX(5px);
  background: #FFE4E1;
}

.dish-item span {
  flex: 1;
  text-align: left;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dish-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 5px;
}

/* 自定义滚动条样式 */
.dish-list::-webkit-scrollbar {
  width: 6px;
}

.dish-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dish-list::-webkit-scrollbar-thumb {
  background: #FF6B6B;
  border-radius: 3px;
}

.dish-list::-webkit-scrollbar-thumb:hover {
  background: #ff5252;
}

.delete-btn {
  background: #FF69B4;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
}

.delete-btn:hover {
  background: #FF1493;
  transform: scale(1.1);
}

/* 添加关闭按钮容器样式 */
.close-button-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* 更新关闭按钮样式 */
.close-button-container .button {
  min-width: 120px;
}

/* 调整菜单操作按钮组样式 */
.menu-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 10px;
}

/* 确保所有按钮样式和大小完全一致 */
.menu-actions .button {
  flex: 1;
  min-width: 100px;
  max-width: 120px;
  padding: 8px 12px;
  font-size: 0.9rem;
  margin: 0; /* 移除任何可能的外边距 */
}

/* 统一所有按钮的样式 */
.menu-actions .button-secondary,
.menu-actions .button-danger {
  background: rgba(255, 255, 255, 0.8);
  color: #FF69B4;
  border: 2px solid #FFB6C1;
}

.menu-actions .button-secondary:hover,
.menu-actions .button-danger:hover {
  background: #FF69B4;
  color: white;
  border-color: transparent;
}

/* 文件输入框样式 */
.file-input {
  display: none;
}

/* 添加确认对话框样式 */
.confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  text-align: center;
  border: 2px solid #FFB6C1;
  width: 90%;
  max-width: 300px;
}

.confirm-dialog p {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

.confirm-dialog .button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.confirm-dialog .button-group .button {
  min-width: 80px;
}

/* 为食物装饰添加悬停效果 */
@media (hover: hover) {
  .food-decoration {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .container:hover .food-decoration {
    opacity: 0.25;
  }
} 